﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Mvc;

namespace Bird.Core.Infrastructure.DependencyManagement
{
    public class BirdDependencyResolver : IDependencyResolver
    {
        public object GetService(Type serviceType)
        {
            return EngineContext.Current.Resolve(serviceType);
        }

        public IEnumerable<object> GetServices(Type serviceType)
        {
            return EngineContext.Current.ResolveAll(serviceType);
        }
    }
}
